<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            box-sizing: border-box;
        }
        .box,.box > div {
            width: 300px;
            height: 300px;
        }
        .box {
            position: relative;
            transform-style: preserve-3d;
            margin: 100px auto;
            transform: rotate3d(0.2,1,0.2,30deg)
        }
        .box > div {
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            border: 1px solid #000;
            background-color: #fff;
        }
        .one {
            justify-content: center;
            align-items: center;
            transform: translateZ(150px);
        }
        .two {
            justify-content: space-around;
            align-items: center;
            transform:rotateY(180deg) translateZ(150px)
        }
        .three {
            justify-content: space-around;
            align-items: center;
            transform: rotateY(-90deg) translateZ(150px)
        }
        .four {
            transform: rotateY(90deg) translateZ(150px);
            justify-content: space-around;
            flex-wrap: wrap;
            align-items: center;
            padding: 30px;
        }
        .four > .dot:nth-child(2n) {
            margin-left: 25px;
        }
        .five {
            transform: rotateX(90deg) translateZ(150px);
            justify-content: space-around;
            flex-wrap: wrap;
            align-items: center;
            padding: 30px;
        }
        .five > .dot:nth-child(2),.five > .dot:nth-child(5){
            margin-left: 25px;
        }
        .five > .dot:nth-child(3) {
            margin: 0 80px;
        }
        .six {
            transform: rotateX(-90deg) translateZ(150px);
            justify-content: space-around;
            align-items: center;
            flex-wrap: wrap;
            padding: 0 30px;
        }
        .six .dot:nth-child(2n) {
            margin-left: 25px;
        }
        .dot {
            width: 80px;
            height: 80px;
            background-color: #000;
            border-radius: 50%;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="one">
            <div class="dot"></div>
        </div>
        <div class="two">
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
        <div class="three">
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
        <div class="four">
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
        <div class="five">
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
        <div class="six">
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
    </div>
</body>
</html>